package com.xueyi.system.customer.service.impl;

import com.xueyi.system.customer.domain.query.BaseCustomerQuery;
import com.xueyi.system.customer.domain.dto.BaseCustomerDto;
import com.xueyi.system.customer.service.IBaseCustomerService;
import com.xueyi.system.customer.manager.IBaseCustomerManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 来往企业管理 服务层处理
 *
 * @author zlf
 */
@Service
public class BaseCustomerServiceImpl extends BaseServiceImpl<BaseCustomerQuery, BaseCustomerDto, IBaseCustomerManager> implements IBaseCustomerService {

    /**
     * 查询来往企业对象列表 | 数据权限 | 附加数据
     *
     * @param customer 来往企业对象
     * @return 来往企业对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"BaseCustomerMapper"})
    public List<BaseCustomerDto> selectListScope(BaseCustomerQuery customer) {
        return baseManager.selectListExtra(customer);
    }

}